import request from "@/utils/request";

// 查询业务设置列表
export function listBizBusinessSet(query) {
  return request({
    url: "/biz/bizBusinessSet/list",
    method: "get",
    params: query,
  });
}

// 查询业务设置详细
export function getBizBusinessSet(id) {
  return request({
    url: "/biz/bizBusinessSet/" + id,
    method: "get",
  });
}

// 新增业务设置
export function addBizBusinessSet(data) {
  return request({
    url: "/biz/bizBusinessSet",
    method: "post",
    data: data,
  });
}

// 修改业务设置
export function updateBizBusinessSet(data) {
  return request({
    url: "/biz/bizBusinessSet",
    method: "put",
    data: data,
  });
}

// 删除业务设置
export function delBizBusinessSet(id) {
  return request({
    url: "/biz/bizBusinessSet/" + id,
    method: "delete",
  });
}

// 查询最大编号
export function findMaxSort() {
  return request({
    url: "/biz/bizBusinessSet/findMaxSort",
    method: "get",
  });
}
// 导出业务设置
export function exportBizBusinessSet(query) {
  return request({
    url: "/biz/bizBusinessSet/export",
    method: "get",
    params: query,
  });
}
